﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;


namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(Thread.CurrentThread.ManagedThreadId);
            Task.Run(new Action(() =>
            Console.WriteLine(Thread.CurrentThread.ManagedThreadId)
            ));
            Console.WriteLine(Thread.CurrentThread.ManagedThreadId);
            TaskFactory factory = new TaskFactory();


            Console.Read();
        }
    }
}
